<style>
    table  tr td {
        padding: 5px;
    }
    #keyTable > tr td:first-child {
        padding-top: 0px;
    }
    body {
        background-color: #fff;
    }
</style>
<table id="keyTable" style="width: 100%;height: 100%;">
    {% if schoolName is defined %}
        <tr>
            <td style="height: 22px;">
                <div><b style="padding: 5px;">{{ schoolName }}</b></div>
            </td>
        </tr>
    {% endif %}
    <tr>
        <td style="height: 22px;">
            <div  style="padding: 5px;background-color: #bdf3dc;display: block">
                <table>
                    <tr>
                        <td>
                            <input id="startTime" type="date" value="{{ startTime }}" class="form-control" style="width: 140px;">
                        </td>
                        <td>
                            <input id="endTime" type="date" value="{{ endTime }}" class="form-control" style="width: 140px;">
                        </td>
                        <td>
                            <select name="list_type"  class="form-control" id="list_type" style="width: 80px;">
                                <option value="out">出库</option>
                                <option value="in">入库</option>
                                <option value="all">总计</option>
                            </select>
                        </td>
                        <td>
                            <select name="list_sortType"  class="form-control" id="list_sortType" style="width: 100px;">
                                <option value="iProdId">商品类型</option>
                                <option value="iOutType">出库类型</option>
                                <option value="iDevType">设备类型</option>
                            </select>
                        </td>
                        <td>
                            <select name="list_prodType"  class="form-control" id="list_prodType" style="width: 80px;">
                                {% if prodType | length > 0 %}
                                    {% for id,text in prodType %}
                                        <option value="{{ id }}" {% if text == '平板' %} selected {% endif %}>{{ text }}</option>
                                    {% endfor %}
                                {% endif %}
                            </select>
                        </td>
                        <td>
                            <select name="list_prod"  class="form-control" id="list_prod" style="width: 120px;">
                            </select>
                        </td>
                        <td>
                            <a class="btn btn-success btn-sm xh-btn-load" id="btn_view" style="width: 80px;margin-left: 5px;">查询</a>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <div id="chart" style="width: 100%;height: 100%"></div>
        </td>
    </tr>
</table>
